<?php if (!defined('THINK_PATH')) exit();?>﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
  	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title></title>
    	<style type="text/css">
			.Tab{ border-collapse:collapse; width:1100px; height:30px;}
			.Tab td{ border:solid 1px #000}
			</style>
  </head>
	<body>
		<h1 align="center">
			iT wOrks.<br>
			tHis iS cAmpus fAir mAnage Page.<br>
		</h1>
		<hr>
		
		<table align="center" cellspacing="0" class="Tab">
	  	<tr>
	    	<td align="center"><a href="__APP__/City">城市列表</a></td>
	    	<td align="center"><a href="__APP__/School/">学校列表</a></td>
	    	<td align="center"><a href="__APP__/Book">书籍信息</a></td>	    	
	    	<td align="center"><a href="__APP__/Other">生活用品</a></td>
	  	</tr>
  	</table>
  	<hr>
  	
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;>>学校列表&nbsp;&nbsp;&nbsp;&nbsp;<a href="__APP__/SchoolAdd">[增加]</a><br>
		<hr>
  	
  	<table align="center" cellspacing="0" class="Tab">
  		<tr>
  			<td align="center">KEY</td>
  			<td align="center">I</td>
	    	<td align="center">ID</td>
	    	<td align="center">MARKID</td>
	    	<td align="center">类型</td>
	    	<td align="center">学校名称</td>
	    	<td align="center">包含学院</td>	    	
	    	<td align="center">城市ID</td>
	    	<td align="center">操作</td>
	  	</tr>
  		<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$School): ++$i;$mod = ($i % 2 )?><tr>
  			<td align="center"><?php echo ($key); ?></td>
  			<td align="center"><?php echo ($i); ?></td>
  			<td align="center"><?php echo ($School["id"]); ?></td>
  			<td align="center"><?php echo ($School["markid"]); ?></td>
  			<td align="center">
  				<?php if(($School["isschool"])  ==  "1"): ?>学校<?php endif; ?>
  				<?php if(($School["isschool"])  ==  "0"): ?>学院<?php endif; ?>
  			</td>
  			<td align="center"><?php echo ($School["name"]); ?></td>
  			<td align="center"><?php echo ($School["contain_markid"]); ?></td>
  			<td align="center"><?php echo ($School["city_markid"]); ?></td>
  			<td align="center">
  				<a href="__APP__/SchoolAdd/Edit/id/<?php echo ($School["id"]); ?>">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;
  				<a href="__APP__/SchoolAdd/View/id/<?php echo ($School["id"]); ?>">查看</a>&nbsp;&nbsp;&nbsp;&nbsp;
  				<a href="__APP__/SchoolAdd/Del/id/<?php echo ($School["id"]); ?>">删除</a>
  			</td>
			</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		</table>
		
		<div class="green-black"><?php echo ($page); ?></div>
		<hr>
		 
	</body>
</html>